package com.teamin.service.Jobs;


import com.github.pagehelper.PageInfo;
import com.teamin.entity.JobAndTrigger;

public interface IJobAndTriggerService {

	public static final String CLASS_TASK_REMIND = "com.teamin.service.TaskRemind.TaskJob" ;
	public static final String GROU_NAME_TASK = "group_task" ;

	public PageInfo<JobAndTrigger> getJobAndTriggerDetails(int pageNum, int pageSize);

	void jobdelete(String key, String jobGroupName) throws Exception;

	/**
	 * 添加任务的提醒
	 * @throws Exception
	 */
	void addTaskJob(Long taskId ,Long remindTime)throws Exception;

	void deleteTaskJob(Long taskId);

	void jobPause(String jobClassName, String jobGroupName) throws Exception;

	void jobresume(String jobClassName, String jobGroupName) throws Exception;

	void jobreschedule(String jobClassName, String jobGroupName, String cronExpression) throws Exception;
}
